package org.x.casemodule.service;


import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import jakarta.servlet.http.HttpServletResponse;
import org.x.casemodule.entity.*;

import java.io.IOException;
import java.util.List;

public interface DocumentService extends IService<GeneratedDocumentEntity> {


    GeneratedDocumentEntity generateApplication(String caseId);

    List<document.LegalProvision> getRelatedLaws(Long docId, int position);

    List<DocumentTemplateEntity> getAllTemplates();

    DocumentTemplateEntity addTemplate(DocumentTemplateEntity template);

    DocumentDraftEntity saveDraft(Long docId, String content);

    //String exportDocument(Long docId, String format);
    void exportDocument(Long docId, String format, HttpServletResponse response) throws IOException;

    String signDocument(Long docId, String signImage);


}